package com.silent.exception;

import com.silent.enums.RestfulEnum;

/**
 * @author Silent-Y
 *继承RuntimeException才会进行事务回滚，Exception不会进行事务回归
 */
public class GirlException extends RuntimeException{
	
	private Integer code;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public GirlException(RestfulEnum restfulEnum) {
		super(restfulEnum.getMsg());
		this.code = code;
	}
	
	

}
